\(\int \frac {\csc ^3(e+f x)}{(a+b \sec ^2(e+f x))^3} \, dx\) [58]

   Optimal result
   Rubi [A] (verified)
   Mathematica [C] (warning: unable to verify)
   Maple [A] (verified)
   Fricas [B] (verification not implemented)
   Sympy [F(-1)]
   Maxima [B] (verification not implemented)
   Giac [B] (verification not implemented)
   Mupad [B] (verification not implemented)

Optimal result

Integrand size = 23, antiderivative size = 213 \[ \int \frac {\csc ^3(e+f x)}{\left (a+b \sec ^2(e+f x)\right )^3} \, dx=\frac {\sqrt {b} \left (15 a^2-10 a b-b^2\right ) \arctan \left (\frac {\sqrt {a} \cos (e+f x)}{\sqrt {b}}\right )}{8 a^{3/2} (a+b)^4 f}-\frac {(a-5 b) \text {arctanh}(\cos (e+f x))}{2 (a+b)^4 f}-\frac {(2 a-b) b \cos (e+f x)}{4 a (a+b)^2 f \left (b+a \cos ^2(e+f x)\right )^2}+\frac {\left (4 a^2-9 a b-b^2\right ) \cos (e+f x)}{8 a (a+b)^3 f \left (b+a \cos ^2(e+f x)\right )}-\frac {\cos (e+f x) \cot ^2(e+f x)}{2 (a+b) f \left (b+a \cos ^2(e+f x)\right )^2} \]

[Out]

-1/2*(a-5*b)*arctanh(cos(f*x+e))/(a+b)^4/f-1/4*(2*a-b)*b*cos(f*x+e)/a/(a+b)^2/f/(b+a*cos(f*x+e)^2)^2+1/8*(4*a^
2-9*a*b-b^2)*cos(f*x+e)/a/(a+b)^3/f/(b+a*cos(f*x+e)^2)-1/2*cos(f*x+e)*cot(f*x+e)^2/(a+b)/f/(b+a*cos(f*x+e)^2)^
2+1/8*(15*a^2-10*a*b-b^2)*arctan(cos(f*x+e)*a^(1/2)/b^(1/2))*b^(1/2)/a^(3/2)/(a+b)^4/f

Rubi [A] (verified)

Time = 0.35 (sec) , antiderivative size = 213, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.304, Rules used = {4218, 481, 592, 541, 536, 212, 211} \[ \int \frac {\csc ^3(e+f x)}{\left (a+b \sec ^2(e+f x)\right )^3} \, dx=\frac {\left (4 a^2-9 a b-b^2\right ) \cos (e+f x)}{8 a f (a+b)^3 \left (a \cos ^2(e+f x)+b\right )}+\frac {\sqrt {b} \left (15 a^2-10 a b-b^2\right ) \arctan \left (\frac {\sqrt {a} \cos (e+f x)}{\sqrt {b}}\right )}{8 a^{3/2} f (a+b)^4}-\frac {(a-5 b) \text {arctanh}(\cos (e+f x))}{2 f (a+b)^4}-\frac {b (2 a-b) \cos (e+f x)}{4 a f (a+b)^2 \left (a \cos ^2(e+f x)+b\right )^2}-\frac {\cos (e+f x) \cot ^2(e+f x)}{2 f (a+b) \left (a \cos ^2(e+f x)+b\right )^2} \]

[In]

Int[Csc[e + f*x]^3/(a + b*Sec[e + f*x]^2)^3,x]

[Out]

(Sqrt[b]*(15*a^2 - 10*a*b - b^2)*ArcTan[(Sqrt[a]*Cos[e + f*x])/Sqrt[b]])/(8*a^(3/2)*(a + b)^4*f) - ((a - 5*b)*
ArcTanh[Cos[e + f*x]])/(2*(a + b)^4*f) - ((2*a - b)*b*Cos[e + f*x])/(4*a*(a + b)^2*f*(b + a*Cos[e + f*x]^2)^2)
 + ((4*a^2 - 9*a*b - b^2)*Cos[e + f*x])/(8*a*(a + b)^3*f*(b + a*Cos[e + f*x]^2)) - (Cos[e + f*x]*Cot[e + f*x]^
2)/(2*(a + b)*f*(b + a*Cos[e + f*x]^2)^2)

Rule 211

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[a/b, 2]/a)*ArcTan[x/Rt[a/b, 2]], x] /; FreeQ[{a, b}, x]
&& PosQ[a/b]

Rule 212

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[-b, 2]))*ArcTanh[Rt[-b, 2]*(x/Rt[a, 2])], x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rule 481

Int[((e_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_))^(q_), x_Symbol] :> Simp[(-a)*e^(
2*n - 1)*(e*x)^(m - 2*n + 1)*(a + b*x^n)^(p + 1)*((c + d*x^n)^(q + 1)/(b*n*(b*c - a*d)*(p + 1))), x] + Dist[e^
(2*n)/(b*n*(b*c - a*d)*(p + 1)), Int[(e*x)^(m - 2*n)*(a + b*x^n)^(p + 1)*(c + d*x^n)^q*Simp[a*c*(m - 2*n + 1)
+ (a*d*(m - n + n*q + 1) + b*c*n*(p + 1))*x^n, x], x], x] /; FreeQ[{a, b, c, d, e, q}, x] && NeQ[b*c - a*d, 0]
 && IGtQ[n, 0] && LtQ[p, -1] && GtQ[m - n + 1, n] && IntBinomialQ[a, b, c, d, e, m, n, p, q, x]

Rule 536

Int[((e_) + (f_.)*(x_)^(n_))/(((a_) + (b_.)*(x_)^(n_))*((c_) + (d_.)*(x_)^(n_))), x_Symbol] :> Dist[(b*e - a*f
)/(b*c - a*d), Int[1/(a + b*x^n), x], x] - Dist[(d*e - c*f)/(b*c - a*d), Int[1/(c + d*x^n), x], x] /; FreeQ[{a
, b, c, d, e, f, n}, x]

Rule 541

Int[((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_))^(q_.)*((e_) + (f_.)*(x_)^(n_)), x_Symbol] :> Simp[(
-(b*e - a*f))*x*(a + b*x^n)^(p + 1)*((c + d*x^n)^(q + 1)/(a*n*(b*c - a*d)*(p + 1))), x] + Dist[1/(a*n*(b*c - a
*d)*(p + 1)), Int[(a + b*x^n)^(p + 1)*(c + d*x^n)^q*Simp[c*(b*e - a*f) + e*n*(b*c - a*d)*(p + 1) + d*(b*e - a*
f)*(n*(p + q + 2) + 1)*x^n, x], x], x] /; FreeQ[{a, b, c, d, e, f, n, q}, x] && LtQ[p, -1]

Rule 592

Int[((g_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_))^(q_)*((e_) + (f_.)*(x_)^(n_)), x
_Symbol] :> Simp[g^(n - 1)*(b*e - a*f)*(g*x)^(m - n + 1)*(a + b*x^n)^(p + 1)*((c + d*x^n)^(q + 1)/(b*n*(b*c -
a*d)*(p + 1))), x] - Dist[g^n/(b*n*(b*c - a*d)*(p + 1)), Int[(g*x)^(m - n)*(a + b*x^n)^(p + 1)*(c + d*x^n)^q*S
imp[c*(b*e - a*f)*(m - n + 1) + (d*(b*e - a*f)*(m + n*q + 1) - b*n*(c*f - d*e)*(p + 1))*x^n, x], x], x] /; Fre
eQ[{a, b, c, d, e, f, g, q}, x] && IGtQ[n, 0] && LtQ[p, -1] && GtQ[m - n + 1, 0]

Rule 4218

Int[((a_) + (b_.)*sec[(e_.) + (f_.)*(x_)]^(n_))^(p_.)*sin[(e_.) + (f_.)*(x_)]^(m_.), x_Symbol] :> With[{ff = F
reeFactors[Cos[e + f*x], x]}, Dist[-ff/f, Subst[Int[(1 - ff^2*x^2)^((m - 1)/2)*((b + a*(ff*x)^n)^p/(ff*x)^(n*p
)), x], x, Cos[e + f*x]/ff], x]] /; FreeQ[{a, b, e, f}, x] && IntegerQ[(m - 1)/2] && IntegerQ[n] && IntegerQ[p
]

Rubi steps \begin{align*} \text {integral}& = -\frac {\text {Subst}\left (\int \frac {x^6}{\left (1-x^2\right )^2 \left (b+a x^2\right )^3} \, dx,x,\cos (e+f x)\right )}{f} \\ & = -\frac {\cos (e+f x) \cot ^2(e+f x)}{2 (a+b) f \left (b+a \cos ^2(e+f x)\right )^2}+\frac {\text {Subst}\left (\int \frac {x^2 \left (3 b+(-a+2 b) x^2\right )}{\left (1-x^2\right ) \left (b+a x^2\right )^3} \, dx,x,\cos (e+f x)\right )}{2 (a+b) f} \\ & = -\frac {(2 a-b) b \cos (e+f x)}{4 a (a+b)^2 f \left (b+a \cos ^2(e+f x)\right )^2}-\frac {\cos (e+f x) \cot ^2(e+f x)}{2 (a+b) f \left (b+a \cos ^2(e+f x)\right )^2}+\frac {\text {Subst}\left (\int \frac {2 (2 a-b) b-2 \left (2 a^2-8 a b-b^2\right ) x^2}{\left (1-x^2\right ) \left (b+a x^2\right )^2} \, dx,x,\cos (e+f x)\right )}{8 a (a+b)^2 f} \\ & = -\frac {(2 a-b) b \cos (e+f x)}{4 a (a+b)^2 f \left (b+a \cos ^2(e+f x)\right )^2}+\frac {\left (4 a^2-9 a b-b^2\right ) \cos (e+f x)}{8 a (a+b)^3 f \left (b+a \cos ^2(e+f x)\right )}-\frac {\cos (e+f x) \cot ^2(e+f x)}{2 (a+b) f \left (b+a \cos ^2(e+f x)\right )^2}-\frac {\text {Subst}\left (\int \frac {-2 (11 a-b) b^2+2 b \left (4 a^2-9 a b-b^2\right ) x^2}{\left (1-x^2\right ) \left (b+a x^2\right )} \, dx,x,\cos (e+f x)\right )}{16 a b (a+b)^3 f} \\ & = -\frac {(2 a-b) b \cos (e+f x)}{4 a (a+b)^2 f \left (b+a \cos ^2(e+f x)\right )^2}+\frac {\left (4 a^2-9 a b-b^2\right ) \cos (e+f x)}{8 a (a+b)^3 f \left (b+a \cos ^2(e+f x)\right )}-\frac {\cos (e+f x) \cot ^2(e+f x)}{2 (a+b) f \left (b+a \cos ^2(e+f x)\right )^2}-\frac {(a-5 b) \text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\cos (e+f x)\right )}{2 (a+b)^4 f}+\frac {\left (b \left (15 a^2-10 a b-b^2\right )\right ) \text {Subst}\left (\int \frac {1}{b+a x^2} \, dx,x,\cos (e+f x)\right )}{8 a (a+b)^4 f} \\ & = \frac {\sqrt {b} \left (15 a^2-10 a b-b^2\right ) \arctan \left (\frac {\sqrt {a} \cos (e+f x)}{\sqrt {b}}\right )}{8 a^{3/2} (a+b)^4 f}-\frac {(a-5 b) \text {arctanh}(\cos (e+f x))}{2 (a+b)^4 f}-\frac {(2 a-b) b \cos (e+f x)}{4 a (a+b)^2 f \left (b+a \cos ^2(e+f x)\right )^2}+\frac {\left (4 a^2-9 a b-b^2\right ) \cos (e+f x)}{8 a (a+b)^3 f \left (b+a \cos ^2(e+f x)\right )}-\frac {\cos (e+f x) \cot ^2(e+f x)}{2 (a+b) f \left (b+a \cos ^2(e+f x)\right )^2} \\ \end{align*}

Mathematica [C] (warning: unable to verify)

Result contains complex when optimal does not.

Time = 5.36 (sec) , antiderivative size = 532, normalized size of antiderivative = 2.50 \[ \int \frac {\csc ^3(e+f x)}{\left (a+b \sec ^2(e+f x)\right )^3} \, dx=\frac {(a+2 b+a \cos (2 (e+f x))) \sec ^5(e+f x) \left (\frac {8 b^2 (a+b)^2}{a}-\frac {2 b (a+b) (9 a+b) (a+2 b+a \cos (2 (e+f x)))}{a}-\frac {\sqrt {b} \left (-15 a^2+10 a b+b^2\right ) \arctan \left (\frac {\left (-\sqrt {a}-i \sqrt {a+b} \sqrt {(\cos (e)-i \sin (e))^2}\right ) \sin (e) \tan \left (\frac {f x}{2}\right )+\cos (e) \left (\sqrt {a}-\sqrt {a+b} \sqrt {(\cos (e)-i \sin (e))^2} \tan \left (\frac {f x}{2}\right )\right )}{\sqrt {b}}\right ) (a+2 b+a \cos (2 (e+f x)))^2 \sec (e+f x)}{a^{3/2}}-\frac {\sqrt {b} \left (-15 a^2+10 a b+b^2\right ) \arctan \left (\frac {\left (-\sqrt {a}+i \sqrt {a+b} \sqrt {(\cos (e)-i \sin (e))^2}\right ) \sin (e) \tan \left (\frac {f x}{2}\right )+\cos (e) \left (\sqrt {a}+\sqrt {a+b} \sqrt {(\cos (e)-i \sin (e))^2} \tan \left (\frac {f x}{2}\right )\right )}{\sqrt {b}}\right ) (a+2 b+a \cos (2 (e+f x)))^2 \sec (e+f x)}{a^{3/2}}-(a+b) (a+2 b+a \cos (2 (e+f x)))^2 \csc ^2\left (\frac {1}{2} (e+f x)\right ) \sec (e+f x)-4 (a-5 b) (a+2 b+a \cos (2 (e+f x)))^2 \log \left (\cos \left (\frac {1}{2} (e+f x)\right )\right ) \sec (e+f x)+4 (a-5 b) (a+2 b+a \cos (2 (e+f x)))^2 \log \left (\sin \left (\frac {1}{2} (e+f x)\right )\right ) \sec (e+f x)+(a+b) (a+2 b+a \cos (2 (e+f x)))^2 \sec ^2\left (\frac {1}{2} (e+f x)\right ) \sec (e+f x)\right )}{64 (a+b)^4 f \left (a+b \sec ^2(e+f x)\right )^3} \]

[In]

Integrate[Csc[e + f*x]^3/(a + b*Sec[e + f*x]^2)^3,x]

[Out]

((a + 2*b + a*Cos[2*(e + f*x)])*Sec[e + f*x]^5*((8*b^2*(a + b)^2)/a - (2*b*(a + b)*(9*a + b)*(a + 2*b + a*Cos[
2*(e + f*x)]))/a - (Sqrt[b]*(-15*a^2 + 10*a*b + b^2)*ArcTan[((-Sqrt[a] - I*Sqrt[a + b]*Sqrt[(Cos[e] - I*Sin[e]
)^2])*Sin[e]*Tan[(f*x)/2] + Cos[e]*(Sqrt[a] - Sqrt[a + b]*Sqrt[(Cos[e] - I*Sin[e])^2]*Tan[(f*x)/2]))/Sqrt[b]]*
(a + 2*b + a*Cos[2*(e + f*x)])^2*Sec[e + f*x])/a^(3/2) - (Sqrt[b]*(-15*a^2 + 10*a*b + b^2)*ArcTan[((-Sqrt[a] +
 I*Sqrt[a + b]*Sqrt[(Cos[e] - I*Sin[e])^2])*Sin[e]*Tan[(f*x)/2] + Cos[e]*(Sqrt[a] + Sqrt[a + b]*Sqrt[(Cos[e] -
 I*Sin[e])^2]*Tan[(f*x)/2]))/Sqrt[b]]*(a + 2*b + a*Cos[2*(e + f*x)])^2*Sec[e + f*x])/a^(3/2) - (a + b)*(a + 2*
b + a*Cos[2*(e + f*x)])^2*Csc[(e + f*x)/2]^2*Sec[e + f*x] - 4*(a - 5*b)*(a + 2*b + a*Cos[2*(e + f*x)])^2*Log[C
os[(e + f*x)/2]]*Sec[e + f*x] + 4*(a - 5*b)*(a + 2*b + a*Cos[2*(e + f*x)])^2*Log[Sin[(e + f*x)/2]]*Sec[e + f*x
] + (a + b)*(a + 2*b + a*Cos[2*(e + f*x)])^2*Sec[(e + f*x)/2]^2*Sec[e + f*x]))/(64*(a + b)^4*f*(a + b*Sec[e +
f*x]^2)^3)

Maple [A] (verified)

Time = 1.76 (sec) , antiderivative size = 198, normalized size of antiderivative = 0.93

method result size
derivativedivides \(\frac {\frac {1}{4 \left (a +b \right )^{3} \left (-1+\cos \left (f x +e \right )\right )}+\frac {\left (a -5 b \right ) \ln \left (-1+\cos \left (f x +e \right )\right )}{4 \left (a +b \right )^{4}}+\frac {b \left (\frac {\left (-\frac {9}{8} a^{2}-\frac {5}{4} a b -\frac {1}{8} b^{2}\right ) \cos \left (f x +e \right )^{3}-\frac {b \left (7 a^{2}+6 a b -b^{2}\right ) \cos \left (f x +e \right )}{8 a}}{\left (b +a \cos \left (f x +e \right )^{2}\right )^{2}}+\frac {\left (15 a^{2}-10 a b -b^{2}\right ) \arctan \left (\frac {a \cos \left (f x +e \right )}{\sqrt {a b}}\right )}{8 a \sqrt {a b}}\right )}{\left (a +b \right )^{4}}+\frac {1}{4 \left (a +b \right )^{3} \left (1+\cos \left (f x +e \right )\right )}+\frac {\left (-a +5 b \right ) \ln \left (1+\cos \left (f x +e \right )\right )}{4 \left (a +b \right )^{4}}}{f}\) \(198\)
default \(\frac {\frac {1}{4 \left (a +b \right )^{3} \left (-1+\cos \left (f x +e \right )\right )}+\frac {\left (a -5 b \right ) \ln \left (-1+\cos \left (f x +e \right )\right )}{4 \left (a +b \right )^{4}}+\frac {b \left (\frac {\left (-\frac {9}{8} a^{2}-\frac {5}{4} a b -\frac {1}{8} b^{2}\right ) \cos \left (f x +e \right )^{3}-\frac {b \left (7 a^{2}+6 a b -b^{2}\right ) \cos \left (f x +e \right )}{8 a}}{\left (b +a \cos \left (f x +e \right )^{2}\right )^{2}}+\frac {\left (15 a^{2}-10 a b -b^{2}\right ) \arctan \left (\frac {a \cos \left (f x +e \right )}{\sqrt {a b}}\right )}{8 a \sqrt {a b}}\right )}{\left (a +b \right )^{4}}+\frac {1}{4 \left (a +b \right )^{3} \left (1+\cos \left (f x +e \right )\right )}+\frac {\left (-a +5 b \right ) \ln \left (1+\cos \left (f x +e \right )\right )}{4 \left (a +b \right )^{4}}}{f}\) \(198\)
risch \(-\frac {-4 a^{3} {\mathrm e}^{11 i \left (f x +e \right )}+9 a^{2} b \,{\mathrm e}^{11 i \left (f x +e \right )}+a \,b^{2} {\mathrm e}^{11 i \left (f x +e \right )}-20 a^{3} {\mathrm e}^{9 i \left (f x +e \right )}-23 a^{2} b \,{\mathrm e}^{9 i \left (f x +e \right )}+29 a \,b^{2} {\mathrm e}^{9 i \left (f x +e \right )}-4 b^{3} {\mathrm e}^{9 i \left (f x +e \right )}-40 a^{3} {\mathrm e}^{7 i \left (f x +e \right )}-114 a^{2} b \,{\mathrm e}^{7 i \left (f x +e \right )}-94 a \,b^{2} {\mathrm e}^{7 i \left (f x +e \right )}+4 b^{3} {\mathrm e}^{7 i \left (f x +e \right )}-40 a^{3} {\mathrm e}^{5 i \left (f x +e \right )}-114 a^{2} b \,{\mathrm e}^{5 i \left (f x +e \right )}-94 a \,b^{2} {\mathrm e}^{5 i \left (f x +e \right )}+4 b^{3} {\mathrm e}^{5 i \left (f x +e \right )}-20 a^{3} {\mathrm e}^{3 i \left (f x +e \right )}-23 a^{2} b \,{\mathrm e}^{3 i \left (f x +e \right )}+29 a \,b^{2} {\mathrm e}^{3 i \left (f x +e \right )}-4 b^{3} {\mathrm e}^{3 i \left (f x +e \right )}-4 a^{3} {\mathrm e}^{i \left (f x +e \right )}+9 a^{2} b \,{\mathrm e}^{i \left (f x +e \right )}+a \,b^{2} {\mathrm e}^{i \left (f x +e \right )}}{4 a f \left (a +b \right )^{3} \left ({\mathrm e}^{2 i \left (f x +e \right )}-1\right )^{2} \left (a \,{\mathrm e}^{4 i \left (f x +e \right )}+2 a \,{\mathrm e}^{2 i \left (f x +e \right )}+4 b \,{\mathrm e}^{2 i \left (f x +e \right )}+a \right )^{2}}+\frac {\ln \left ({\mathrm e}^{i \left (f x +e \right )}-1\right ) a}{2 f \left (a^{4}+4 a^{3} b +6 a^{2} b^{2}+4 a \,b^{3}+b^{4}\right )}-\frac {5 \ln \left ({\mathrm e}^{i \left (f x +e \right )}-1\right ) b}{2 f \left (a^{4}+4 a^{3} b +6 a^{2} b^{2}+4 a \,b^{3}+b^{4}\right )}-\frac {\ln \left ({\mathrm e}^{i \left (f x +e \right )}+1\right ) a}{2 f \left (a^{4}+4 a^{3} b +6 a^{2} b^{2}+4 a \,b^{3}+b^{4}\right )}+\frac {5 \ln \left ({\mathrm e}^{i \left (f x +e \right )}+1\right ) b}{2 f \left (a^{4}+4 a^{3} b +6 a^{2} b^{2}+4 a \,b^{3}+b^{4}\right )}-\frac {15 i \sqrt {a b}\, \ln \left ({\mathrm e}^{2 i \left (f x +e \right )}-\frac {2 i \sqrt {a b}\, {\mathrm e}^{i \left (f x +e \right )}}{a}+1\right )}{16 \left (a +b \right )^{4} f}+\frac {5 i \sqrt {a b}\, \ln \left ({\mathrm e}^{2 i \left (f x +e \right )}-\frac {2 i \sqrt {a b}\, {\mathrm e}^{i \left (f x +e \right )}}{a}+1\right ) b}{8 a \left (a +b \right )^{4} f}+\frac {i \sqrt {a b}\, \ln \left ({\mathrm e}^{2 i \left (f x +e \right )}-\frac {2 i \sqrt {a b}\, {\mathrm e}^{i \left (f x +e \right )}}{a}+1\right ) b^{2}}{16 a^{2} \left (a +b \right )^{4} f}+\frac {15 i \sqrt {a b}\, \ln \left ({\mathrm e}^{2 i \left (f x +e \right )}+\frac {2 i \sqrt {a b}\, {\mathrm e}^{i \left (f x +e \right )}}{a}+1\right )}{16 \left (a +b \right )^{4} f}-\frac {5 i \sqrt {a b}\, \ln \left ({\mathrm e}^{2 i \left (f x +e \right )}+\frac {2 i \sqrt {a b}\, {\mathrm e}^{i \left (f x +e \right )}}{a}+1\right ) b}{8 a \left (a +b \right )^{4} f}-\frac {i \sqrt {a b}\, \ln \left ({\mathrm e}^{2 i \left (f x +e \right )}+\frac {2 i \sqrt {a b}\, {\mathrm e}^{i \left (f x +e \right )}}{a}+1\right ) b^{2}}{16 a^{2} \left (a +b \right )^{4} f}\) \(882\)

[In]

int(csc(f*x+e)^3/(a+b*sec(f*x+e)^2)^3,x,method=_RETURNVERBOSE)

[Out]

1/f*(1/4/(a+b)^3/(-1+cos(f*x+e))+1/4*(a-5*b)/(a+b)^4*ln(-1+cos(f*x+e))+b/(a+b)^4*(((-9/8*a^2-5/4*a*b-1/8*b^2)*
cos(f*x+e)^3-1/8*b*(7*a^2+6*a*b-b^2)/a*cos(f*x+e))/(b+a*cos(f*x+e)^2)^2+1/8*(15*a^2-10*a*b-b^2)/a/(a*b)^(1/2)*
arctan(a*cos(f*x+e)/(a*b)^(1/2)))+1/4/(a+b)^3/(1+cos(f*x+e))+1/4/(a+b)^4*(-a+5*b)*ln(1+cos(f*x+e)))

Fricas [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 649 vs. \(2 (195) = 390\).

Time = 0.43 (sec) , antiderivative size = 1332, normalized size of antiderivative = 6.25 \[ \int \frac {\csc ^3(e+f x)}{\left (a+b \sec ^2(e+f x)\right )^3} \, dx=\text {Too large to display} \]

[In]

integrate(csc(f*x+e)^3/(a+b*sec(f*x+e)^2)^3,x, algorithm="fricas")

[Out]

[1/16*(2*(4*a^4 - 5*a^3*b - 10*a^2*b^2 - a*b^3)*cos(f*x + e)^5 + 2*(17*a^3*b + 11*a^2*b^2 - 5*a*b^3 + b^4)*cos
(f*x + e)^3 - ((15*a^4 - 10*a^3*b - a^2*b^2)*cos(f*x + e)^6 - (15*a^4 - 40*a^3*b + 19*a^2*b^2 + 2*a*b^3)*cos(f
*x + e)^4 - 15*a^2*b^2 + 10*a*b^3 + b^4 - (30*a^3*b - 35*a^2*b^2 + 8*a*b^3 + b^4)*cos(f*x + e)^2)*sqrt(-b/a)*l
og((a*cos(f*x + e)^2 - 2*a*sqrt(-b/a)*cos(f*x + e) - b)/(a*cos(f*x + e)^2 + b)) + 2*(11*a^2*b^2 + 10*a*b^3 - b
^4)*cos(f*x + e) - 4*((a^4 - 5*a^3*b)*cos(f*x + e)^6 - (a^4 - 7*a^3*b + 10*a^2*b^2)*cos(f*x + e)^4 - a^2*b^2 +
 5*a*b^3 - (2*a^3*b - 11*a^2*b^2 + 5*a*b^3)*cos(f*x + e)^2)*log(1/2*cos(f*x + e) + 1/2) + 4*((a^4 - 5*a^3*b)*c
os(f*x + e)^6 - (a^4 - 7*a^3*b + 10*a^2*b^2)*cos(f*x + e)^4 - a^2*b^2 + 5*a*b^3 - (2*a^3*b - 11*a^2*b^2 + 5*a*
b^3)*cos(f*x + e)^2)*log(-1/2*cos(f*x + e) + 1/2))/((a^7 + 4*a^6*b + 6*a^5*b^2 + 4*a^4*b^3 + a^3*b^4)*f*cos(f*
x + e)^6 - (a^7 + 2*a^6*b - 2*a^5*b^2 - 8*a^4*b^3 - 7*a^3*b^4 - 2*a^2*b^5)*f*cos(f*x + e)^4 - (2*a^6*b + 7*a^5
*b^2 + 8*a^4*b^3 + 2*a^3*b^4 - 2*a^2*b^5 - a*b^6)*f*cos(f*x + e)^2 - (a^5*b^2 + 4*a^4*b^3 + 6*a^3*b^4 + 4*a^2*
b^5 + a*b^6)*f), 1/8*((4*a^4 - 5*a^3*b - 10*a^2*b^2 - a*b^3)*cos(f*x + e)^5 + (17*a^3*b + 11*a^2*b^2 - 5*a*b^3
 + b^4)*cos(f*x + e)^3 + ((15*a^4 - 10*a^3*b - a^2*b^2)*cos(f*x + e)^6 - (15*a^4 - 40*a^3*b + 19*a^2*b^2 + 2*a
*b^3)*cos(f*x + e)^4 - 15*a^2*b^2 + 10*a*b^3 + b^4 - (30*a^3*b - 35*a^2*b^2 + 8*a*b^3 + b^4)*cos(f*x + e)^2)*s
qrt(b/a)*arctan(a*sqrt(b/a)*cos(f*x + e)/b) + (11*a^2*b^2 + 10*a*b^3 - b^4)*cos(f*x + e) - 2*((a^4 - 5*a^3*b)*
cos(f*x + e)^6 - (a^4 - 7*a^3*b + 10*a^2*b^2)*cos(f*x + e)^4 - a^2*b^2 + 5*a*b^3 - (2*a^3*b - 11*a^2*b^2 + 5*a
*b^3)*cos(f*x + e)^2)*log(1/2*cos(f*x + e) + 1/2) + 2*((a^4 - 5*a^3*b)*cos(f*x + e)^6 - (a^4 - 7*a^3*b + 10*a^
2*b^2)*cos(f*x + e)^4 - a^2*b^2 + 5*a*b^3 - (2*a^3*b - 11*a^2*b^2 + 5*a*b^3)*cos(f*x + e)^2)*log(-1/2*cos(f*x
+ e) + 1/2))/((a^7 + 4*a^6*b + 6*a^5*b^2 + 4*a^4*b^3 + a^3*b^4)*f*cos(f*x + e)^6 - (a^7 + 2*a^6*b - 2*a^5*b^2
- 8*a^4*b^3 - 7*a^3*b^4 - 2*a^2*b^5)*f*cos(f*x + e)^4 - (2*a^6*b + 7*a^5*b^2 + 8*a^4*b^3 + 2*a^3*b^4 - 2*a^2*b
^5 - a*b^6)*f*cos(f*x + e)^2 - (a^5*b^2 + 4*a^4*b^3 + 6*a^3*b^4 + 4*a^2*b^5 + a*b^6)*f)]

Sympy [F(-1)]

Timed out. \[ \int \frac {\csc ^3(e+f x)}{\left (a+b \sec ^2(e+f x)\right )^3} \, dx=\text {Timed out} \]

[In]

integrate(csc(f*x+e)**3/(a+b*sec(f*x+e)**2)**3,x)

[Out]

Timed out

Maxima [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 399 vs. \(2 (195) = 390\).

Time = 0.27 (sec) , antiderivative size = 399, normalized size of antiderivative = 1.87 \[ \int \frac {\csc ^3(e+f x)}{\left (a+b \sec ^2(e+f x)\right )^3} \, dx=-\frac {\frac {2 \, {\left (a - 5 \, b\right )} \log \left (\cos \left (f x + e\right ) + 1\right )}{a^{4} + 4 \, a^{3} b + 6 \, a^{2} b^{2} + 4 \, a b^{3} + b^{4}} - \frac {2 \, {\left (a - 5 \, b\right )} \log \left (\cos \left (f x + e\right ) - 1\right )}{a^{4} + 4 \, a^{3} b + 6 \, a^{2} b^{2} + 4 \, a b^{3} + b^{4}} - \frac {{\left (15 \, a^{2} b - 10 \, a b^{2} - b^{3}\right )} \arctan \left (\frac {a \cos \left (f x + e\right )}{\sqrt {a b}}\right )}{{\left (a^{5} + 4 \, a^{4} b + 6 \, a^{3} b^{2} + 4 \, a^{2} b^{3} + a b^{4}\right )} \sqrt {a b}} - \frac {{\left (4 \, a^{3} - 9 \, a^{2} b - a b^{2}\right )} \cos \left (f x + e\right )^{5} + {\left (17 \, a^{2} b - 6 \, a b^{2} + b^{3}\right )} \cos \left (f x + e\right )^{3} + {\left (11 \, a b^{2} - b^{3}\right )} \cos \left (f x + e\right )}{{\left (a^{6} + 3 \, a^{5} b + 3 \, a^{4} b^{2} + a^{3} b^{3}\right )} \cos \left (f x + e\right )^{6} - a^{4} b^{2} - 3 \, a^{3} b^{3} - 3 \, a^{2} b^{4} - a b^{5} - {\left (a^{6} + a^{5} b - 3 \, a^{4} b^{2} - 5 \, a^{3} b^{3} - 2 \, a^{2} b^{4}\right )} \cos \left (f x + e\right )^{4} - {\left (2 \, a^{5} b + 5 \, a^{4} b^{2} + 3 \, a^{3} b^{3} - a^{2} b^{4} - a b^{5}\right )} \cos \left (f x + e\right )^{2}}}{8 \, f} \]

[In]

integrate(csc(f*x+e)^3/(a+b*sec(f*x+e)^2)^3,x, algorithm="maxima")

[Out]

-1/8*(2*(a - 5*b)*log(cos(f*x + e) + 1)/(a^4 + 4*a^3*b + 6*a^2*b^2 + 4*a*b^3 + b^4) - 2*(a - 5*b)*log(cos(f*x
+ e) - 1)/(a^4 + 4*a^3*b + 6*a^2*b^2 + 4*a*b^3 + b^4) - (15*a^2*b - 10*a*b^2 - b^3)*arctan(a*cos(f*x + e)/sqrt
(a*b))/((a^5 + 4*a^4*b + 6*a^3*b^2 + 4*a^2*b^3 + a*b^4)*sqrt(a*b)) - ((4*a^3 - 9*a^2*b - a*b^2)*cos(f*x + e)^5
 + (17*a^2*b - 6*a*b^2 + b^3)*cos(f*x + e)^3 + (11*a*b^2 - b^3)*cos(f*x + e))/((a^6 + 3*a^5*b + 3*a^4*b^2 + a^
3*b^3)*cos(f*x + e)^6 - a^4*b^2 - 3*a^3*b^3 - 3*a^2*b^4 - a*b^5 - (a^6 + a^5*b - 3*a^4*b^2 - 5*a^3*b^3 - 2*a^2
*b^4)*cos(f*x + e)^4 - (2*a^5*b + 5*a^4*b^2 + 3*a^3*b^3 - a^2*b^4 - a*b^5)*cos(f*x + e)^2))/f

Giac [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 750 vs. \(2 (195) = 390\).

Time = 0.52 (sec) , antiderivative size = 750, normalized size of antiderivative = 3.52 \[ \int \frac {\csc ^3(e+f x)}{\left (a+b \sec ^2(e+f x)\right )^3} \, dx=\frac {\frac {2 \, {\left (a - 5 \, b\right )} \log \left (\frac {{\left | -\cos \left (f x + e\right ) + 1 \right |}}{{\left | \cos \left (f x + e\right ) + 1 \right |}}\right )}{a^{4} + 4 \, a^{3} b + 6 \, a^{2} b^{2} + 4 \, a b^{3} + b^{4}} - \frac {{\left (15 \, a^{2} b - 10 \, a b^{2} - b^{3}\right )} \arctan \left (-\frac {a \cos \left (f x + e\right ) - b}{\sqrt {a b} \cos \left (f x + e\right ) + \sqrt {a b}}\right )}{{\left (a^{5} + 4 \, a^{4} b + 6 \, a^{3} b^{2} + 4 \, a^{2} b^{3} + a b^{4}\right )} \sqrt {a b}} + \frac {{\left (a + b - \frac {2 \, a {\left (\cos \left (f x + e\right ) - 1\right )}}{\cos \left (f x + e\right ) + 1} + \frac {10 \, b {\left (\cos \left (f x + e\right ) - 1\right )}}{\cos \left (f x + e\right ) + 1}\right )} {\left (\cos \left (f x + e\right ) + 1\right )}}{{\left (a^{4} + 4 \, a^{3} b + 6 \, a^{2} b^{2} + 4 \, a b^{3} + b^{4}\right )} {\left (\cos \left (f x + e\right ) - 1\right )}} - \frac {\cos \left (f x + e\right ) - 1}{{\left (a^{3} + 3 \, a^{2} b + 3 \, a b^{2} + b^{3}\right )} {\left (\cos \left (f x + e\right ) + 1\right )}} - \frac {2 \, {\left (9 \, a^{3} b + 17 \, a^{2} b^{2} + 7 \, a b^{3} - b^{4} + \frac {27 \, a^{3} b {\left (\cos \left (f x + e\right ) - 1\right )}}{\cos \left (f x + e\right ) + 1} + \frac {a^{2} b^{2} {\left (\cos \left (f x + e\right ) - 1\right )}}{\cos \left (f x + e\right ) + 1} - \frac {23 \, a b^{3} {\left (\cos \left (f x + e\right ) - 1\right )}}{\cos \left (f x + e\right ) + 1} + \frac {3 \, b^{4} {\left (\cos \left (f x + e\right ) - 1\right )}}{\cos \left (f x + e\right ) + 1} + \frac {27 \, a^{3} b {\left (\cos \left (f x + e\right ) - 1\right )}^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} - \frac {21 \, a^{2} b^{2} {\left (\cos \left (f x + e\right ) - 1\right )}^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + \frac {29 \, a b^{3} {\left (\cos \left (f x + e\right ) - 1\right )}^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} - \frac {3 \, b^{4} {\left (\cos \left (f x + e\right ) - 1\right )}^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + \frac {9 \, a^{3} b {\left (\cos \left (f x + e\right ) - 1\right )}^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}} - \frac {5 \, a^{2} b^{2} {\left (\cos \left (f x + e\right ) - 1\right )}^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}} - \frac {13 \, a b^{3} {\left (\cos \left (f x + e\right ) - 1\right )}^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}} + \frac {b^{4} {\left (\cos \left (f x + e\right ) - 1\right )}^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}}\right )}}{{\left (a^{5} + 4 \, a^{4} b + 6 \, a^{3} b^{2} + 4 \, a^{2} b^{3} + a b^{4}\right )} {\left (a + b + \frac {2 \, a {\left (\cos \left (f x + e\right ) - 1\right )}}{\cos \left (f x + e\right ) + 1} - \frac {2 \, b {\left (\cos \left (f x + e\right ) - 1\right )}}{\cos \left (f x + e\right ) + 1} + \frac {a {\left (\cos \left (f x + e\right ) - 1\right )}^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + \frac {b {\left (\cos \left (f x + e\right ) - 1\right )}^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}}\right )}^{2}}}{8 \, f} \]

[In]

integrate(csc(f*x+e)^3/(a+b*sec(f*x+e)^2)^3,x, algorithm="giac")

[Out]

1/8*(2*(a - 5*b)*log(abs(-cos(f*x + e) + 1)/abs(cos(f*x + e) + 1))/(a^4 + 4*a^3*b + 6*a^2*b^2 + 4*a*b^3 + b^4)
 - (15*a^2*b - 10*a*b^2 - b^3)*arctan(-(a*cos(f*x + e) - b)/(sqrt(a*b)*cos(f*x + e) + sqrt(a*b)))/((a^5 + 4*a^
4*b + 6*a^3*b^2 + 4*a^2*b^3 + a*b^4)*sqrt(a*b)) + (a + b - 2*a*(cos(f*x + e) - 1)/(cos(f*x + e) + 1) + 10*b*(c
os(f*x + e) - 1)/(cos(f*x + e) + 1))*(cos(f*x + e) + 1)/((a^4 + 4*a^3*b + 6*a^2*b^2 + 4*a*b^3 + b^4)*(cos(f*x
+ e) - 1)) - (cos(f*x + e) - 1)/((a^3 + 3*a^2*b + 3*a*b^2 + b^3)*(cos(f*x + e) + 1)) - 2*(9*a^3*b + 17*a^2*b^2
 + 7*a*b^3 - b^4 + 27*a^3*b*(cos(f*x + e) - 1)/(cos(f*x + e) + 1) + a^2*b^2*(cos(f*x + e) - 1)/(cos(f*x + e) +
 1) - 23*a*b^3*(cos(f*x + e) - 1)/(cos(f*x + e) + 1) + 3*b^4*(cos(f*x + e) - 1)/(cos(f*x + e) + 1) + 27*a^3*b*
(cos(f*x + e) - 1)^2/(cos(f*x + e) + 1)^2 - 21*a^2*b^2*(cos(f*x + e) - 1)^2/(cos(f*x + e) + 1)^2 + 29*a*b^3*(c
os(f*x + e) - 1)^2/(cos(f*x + e) + 1)^2 - 3*b^4*(cos(f*x + e) - 1)^2/(cos(f*x + e) + 1)^2 + 9*a^3*b*(cos(f*x +
 e) - 1)^3/(cos(f*x + e) + 1)^3 - 5*a^2*b^2*(cos(f*x + e) - 1)^3/(cos(f*x + e) + 1)^3 - 13*a*b^3*(cos(f*x + e)
 - 1)^3/(cos(f*x + e) + 1)^3 + b^4*(cos(f*x + e) - 1)^3/(cos(f*x + e) + 1)^3)/((a^5 + 4*a^4*b + 6*a^3*b^2 + 4*
a^2*b^3 + a*b^4)*(a + b + 2*a*(cos(f*x + e) - 1)/(cos(f*x + e) + 1) - 2*b*(cos(f*x + e) - 1)/(cos(f*x + e) + 1
) + a*(cos(f*x + e) - 1)^2/(cos(f*x + e) + 1)^2 + b*(cos(f*x + e) - 1)^2/(cos(f*x + e) + 1)^2)^2))/f

Mupad [B] (verification not implemented)

Time = 19.87 (sec) , antiderivative size = 2728, normalized size of antiderivative = 12.81 \[ \int \frac {\csc ^3(e+f x)}{\left (a+b \sec ^2(e+f x)\right )^3} \, dx=\text {Too large to display} \]

[In]

int(1/(sin(e + f*x)^3*(a + b/cos(e + f*x)^2)^3),x)

[Out]

- ((cos(e + f*x)^3*(17*a^2*b - 6*a*b^2 + b^3))/(8*(a*b^3 + 3*a^3*b + a^4 + 3*a^2*b^2)) - (cos(e + f*x)^5*(9*a*
b - 4*a^2 + b^2))/(8*(3*a*b^2 + 3*a^2*b + a^3 + b^3)) + (b^2*cos(e + f*x)*(11*a - b))/(8*(a*b^3 + 3*a^3*b + a^
4 + 3*a^2*b^2)))/(f*(b^2 - cos(e + f*x)^4*(2*a*b - a^2) + cos(e + f*x)^2*(2*a*b - b^2) - a^2*cos(e + f*x)^6))
- (log(cos(e + f*x) - 1)*((3*b)/(2*(a + b)^4) - 1/(4*(a + b)^3)))/f - (log(cos(e + f*x) + 1)*(a - 5*b))/(4*f*(
a + b)^4) - (atan(((((cos(e + f*x)*(20*a*b^5 - 160*a^5*b + 16*a^6 + b^6 + 70*a^2*b^4 - 300*a^3*b^3 + 625*a^4*b
^2))/(32*(a*b^6 + 6*a^6*b + a^7 + 6*a^2*b^5 + 15*a^3*b^4 + 20*a^4*b^3 + 15*a^5*b^2)) + ((-a^3*b)^(1/2)*(((11*a
^11*b)/2 - (a^2*b^10)/2 + (3*a^3*b^9)/2 + 30*a^4*b^8 + 126*a^5*b^7 + 273*a^6*b^6 + 357*a^7*b^5 + 294*a^8*b^4 +
 150*a^9*b^3 + (87*a^10*b^2)/2)/(a*b^9 + 9*a^9*b + a^10 + 9*a^2*b^8 + 36*a^3*b^7 + 84*a^4*b^6 + 126*a^5*b^5 +
126*a^6*b^4 + 84*a^7*b^3 + 36*a^8*b^2) - (cos(e + f*x)*(-a^3*b)^(1/2)*(10*a*b - 15*a^2 + b^2)*(1792*a^11*b + 2
56*a^12 - 256*a^3*b^9 - 1792*a^4*b^8 - 5120*a^5*b^7 - 7168*a^6*b^6 - 3584*a^7*b^5 + 3584*a^8*b^4 + 7168*a^9*b^
3 + 5120*a^10*b^2))/(512*(4*a^6*b + a^7 + a^3*b^4 + 4*a^4*b^3 + 6*a^5*b^2)*(a*b^6 + 6*a^6*b + a^7 + 6*a^2*b^5
+ 15*a^3*b^4 + 20*a^4*b^3 + 15*a^5*b^2)))*(10*a*b - 15*a^2 + b^2))/(16*(4*a^6*b + a^7 + a^3*b^4 + 4*a^4*b^3 +
6*a^5*b^2)))*(-a^3*b)^(1/2)*(10*a*b - 15*a^2 + b^2)*1i)/(16*(4*a^6*b + a^7 + a^3*b^4 + 4*a^4*b^3 + 6*a^5*b^2))
 + (((cos(e + f*x)*(20*a*b^5 - 160*a^5*b + 16*a^6 + b^6 + 70*a^2*b^4 - 300*a^3*b^3 + 625*a^4*b^2))/(32*(a*b^6
+ 6*a^6*b + a^7 + 6*a^2*b^5 + 15*a^3*b^4 + 20*a^4*b^3 + 15*a^5*b^2)) - ((-a^3*b)^(1/2)*(((11*a^11*b)/2 - (a^2*
b^10)/2 + (3*a^3*b^9)/2 + 30*a^4*b^8 + 126*a^5*b^7 + 273*a^6*b^6 + 357*a^7*b^5 + 294*a^8*b^4 + 150*a^9*b^3 + (
87*a^10*b^2)/2)/(a*b^9 + 9*a^9*b + a^10 + 9*a^2*b^8 + 36*a^3*b^7 + 84*a^4*b^6 + 126*a^5*b^5 + 126*a^6*b^4 + 84
*a^7*b^3 + 36*a^8*b^2) + (cos(e + f*x)*(-a^3*b)^(1/2)*(10*a*b - 15*a^2 + b^2)*(1792*a^11*b + 256*a^12 - 256*a^
3*b^9 - 1792*a^4*b^8 - 5120*a^5*b^7 - 7168*a^6*b^6 - 3584*a^7*b^5 + 3584*a^8*b^4 + 7168*a^9*b^3 + 5120*a^10*b^
2))/(512*(4*a^6*b + a^7 + a^3*b^4 + 4*a^4*b^3 + 6*a^5*b^2)*(a*b^6 + 6*a^6*b + a^7 + 6*a^2*b^5 + 15*a^3*b^4 + 2
0*a^4*b^3 + 15*a^5*b^2)))*(10*a*b - 15*a^2 + b^2))/(16*(4*a^6*b + a^7 + a^3*b^4 + 4*a^4*b^3 + 6*a^5*b^2)))*(-a
^3*b)^(1/2)*(10*a*b - 15*a^2 + b^2)*1i)/(16*(4*a^6*b + a^7 + a^3*b^4 + 4*a^4*b^3 + 6*a^5*b^2)))/(((47*a*b^5)/3
2 - (15*a^5*b)/16 + (5*b^6)/64 + (21*a^2*b^4)/4 - (473*a^3*b^3)/32 + (475*a^4*b^2)/64)/(a*b^9 + 9*a^9*b + a^10
 + 9*a^2*b^8 + 36*a^3*b^7 + 84*a^4*b^6 + 126*a^5*b^5 + 126*a^6*b^4 + 84*a^7*b^3 + 36*a^8*b^2) + (((cos(e + f*x
)*(20*a*b^5 - 160*a^5*b + 16*a^6 + b^6 + 70*a^2*b^4 - 300*a^3*b^3 + 625*a^4*b^2))/(32*(a*b^6 + 6*a^6*b + a^7 +
 6*a^2*b^5 + 15*a^3*b^4 + 20*a^4*b^3 + 15*a^5*b^2)) + ((-a^3*b)^(1/2)*(((11*a^11*b)/2 - (a^2*b^10)/2 + (3*a^3*
b^9)/2 + 30*a^4*b^8 + 126*a^5*b^7 + 273*a^6*b^6 + 357*a^7*b^5 + 294*a^8*b^4 + 150*a^9*b^3 + (87*a^10*b^2)/2)/(
a*b^9 + 9*a^9*b + a^10 + 9*a^2*b^8 + 36*a^3*b^7 + 84*a^4*b^6 + 126*a^5*b^5 + 126*a^6*b^4 + 84*a^7*b^3 + 36*a^8
*b^2) - (cos(e + f*x)*(-a^3*b)^(1/2)*(10*a*b - 15*a^2 + b^2)*(1792*a^11*b + 256*a^12 - 256*a^3*b^9 - 1792*a^4*
b^8 - 5120*a^5*b^7 - 7168*a^6*b^6 - 3584*a^7*b^5 + 3584*a^8*b^4 + 7168*a^9*b^3 + 5120*a^10*b^2))/(512*(4*a^6*b
 + a^7 + a^3*b^4 + 4*a^4*b^3 + 6*a^5*b^2)*(a*b^6 + 6*a^6*b + a^7 + 6*a^2*b^5 + 15*a^3*b^4 + 20*a^4*b^3 + 15*a^
5*b^2)))*(10*a*b - 15*a^2 + b^2))/(16*(4*a^6*b + a^7 + a^3*b^4 + 4*a^4*b^3 + 6*a^5*b^2)))*(-a^3*b)^(1/2)*(10*a
*b - 15*a^2 + b^2))/(16*(4*a^6*b + a^7 + a^3*b^4 + 4*a^4*b^3 + 6*a^5*b^2)) - (((cos(e + f*x)*(20*a*b^5 - 160*a
^5*b + 16*a^6 + b^6 + 70*a^2*b^4 - 300*a^3*b^3 + 625*a^4*b^2))/(32*(a*b^6 + 6*a^6*b + a^7 + 6*a^2*b^5 + 15*a^3
*b^4 + 20*a^4*b^3 + 15*a^5*b^2)) - ((-a^3*b)^(1/2)*(((11*a^11*b)/2 - (a^2*b^10)/2 + (3*a^3*b^9)/2 + 30*a^4*b^8
 + 126*a^5*b^7 + 273*a^6*b^6 + 357*a^7*b^5 + 294*a^8*b^4 + 150*a^9*b^3 + (87*a^10*b^2)/2)/(a*b^9 + 9*a^9*b + a
^10 + 9*a^2*b^8 + 36*a^3*b^7 + 84*a^4*b^6 + 126*a^5*b^5 + 126*a^6*b^4 + 84*a^7*b^3 + 36*a^8*b^2) + (cos(e + f*
x)*(-a^3*b)^(1/2)*(10*a*b - 15*a^2 + b^2)*(1792*a^11*b + 256*a^12 - 256*a^3*b^9 - 1792*a^4*b^8 - 5120*a^5*b^7
- 7168*a^6*b^6 - 3584*a^7*b^5 + 3584*a^8*b^4 + 7168*a^9*b^3 + 5120*a^10*b^2))/(512*(4*a^6*b + a^7 + a^3*b^4 +
4*a^4*b^3 + 6*a^5*b^2)*(a*b^6 + 6*a^6*b + a^7 + 6*a^2*b^5 + 15*a^3*b^4 + 20*a^4*b^3 + 15*a^5*b^2)))*(10*a*b -
15*a^2 + b^2))/(16*(4*a^6*b + a^7 + a^3*b^4 + 4*a^4*b^3 + 6*a^5*b^2)))*(-a^3*b)^(1/2)*(10*a*b - 15*a^2 + b^2))
/(16*(4*a^6*b + a^7 + a^3*b^4 + 4*a^4*b^3 + 6*a^5*b^2))))*(-a^3*b)^(1/2)*(10*a*b - 15*a^2 + b^2)*1i)/(8*f*(4*a
^6*b + a^7 + a^3*b^4 + 4*a^4*b^3 + 6*a^5*b^2))